<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt'%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ page
	import="org.springframework.security.core.AuthenticationException"%>
<%@ page import="java.net.URL"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Home</title>

<link rel="stylesheet" type="text/css"
	href=${pageContext.servletContext.contextPath}/static/css/start-style.css />

<title>Wypożyczalnia samochodów</title>
</head>
<body>
	<div id="wrapper">
		<div id="bg">
			<div id="header"></div>
			<div id="page">
				<jsp:include page="adminHeader.jsp" />

				<!--  content -->
				<div id="content">

					<div id="center">
						<a href="/ssi/adminEditorCars/adminAddCar.do">Dodaj samochod</a>
						<div id="listasamochodow2">
							<p>
							<h2>Samochody do wypozyczenia</h2>
							</p>

							<c:forEach items="${cars}" var="car">

								<table style="width:450px">
									<tr>
										<th  style="width:60px">Producent
										</th>
										<td>${car.brand}</td>
										<th style="width:50px">Model
										</th>
										<td>${car.model}</td>
										<th style="width:50px">Numer rejestracyjny
										</th>
										<td>${car.registration_number}</td>
										<form:form class="cmxform" commandName="rentForm"
												id="rentForm" method="get"
												action="/ssi/adminEditorCars/adminEditCar.do">
												<input type="hidden" path="id" id="id" name="id"
													value="${car.id}" />
												<input type="submit" style="float: right;" value="Edytuj" name="Edytuj" />
											</form:form>
									</tr>

								</table>

							</c:forEach>

						</div>
						<div id="main_content"></div>
					</div>

					<div id="right">
						<div id="sidebar">
							<h3>Categories</h3>
							<ul class="vmenu">
								<li><a href="#" shape="rect">Category 1</a></li>
								<li><a href="#" shape="rect">Category 2</a></li>
								<li><a href="#" shape="rect">Category 3</a></li>
								<li><a href="#" shape="rect">Category 4</a></li>
								<li><a href="#" shape="rect">Category 5</a></li>
							</ul>
							<h3 style="margin-top: 40px">News</h3>
							<p></p>
							<div style="font-weight: bold; margin-top: 20px">Call us :
								00-123-456-789</div>
							<div style="text-align: center; margin: 20px 0">
								<img src="../static/css/images/phone-1_64.jpg" />
							</div>
						</div>
					</div>
					<div class="clear" style="height: 40px"></div>
				</div>
				<!-- end content -->
			</div>
			<!-- end container -->
		</div>
		<div id="footerWrapper">
			<div id="footer">
				<p style="padding-top: 10px;">
					<a href="#" shape="rect">Home</a> | <a href="#" shape="rect">Products</a>
					| <a href="#" shape="rect">Services</a> | <a href="#" shape="rect">News</a>
					| <a href="#" shape="rect">About</a>
				</p>
				<p>
					<!-- 
DO NOT REMOVE OR MODIFY THE FOOTER LINK BELOW.
If you want to remove this link please make a 10 dollars donation at www.dotemplate.com
-->
					<a href="http://www.dotemplate.com" shape="rect">Templates</a>
					maker
				</p>
			</div>
		</div>
	</div>
</body>
</html>
